package class1.s2022350143027.data;

import class1.s2022350143027.model.OrdersModel;

import java.util.ArrayList;
import java.util.List;

public class OrdersData {

    /**自定义集合方式
     * 选择ArrayList
     */
    protected List<OrdersModel> ordersDataList;


    public OrdersData(){
        this.ordersDataList = new ArrayList<>();
    }


    /**
     * 返回订单集合
     * @return ordersDataList
     */
    public List<OrdersModel> getOrdersDataList() {
        return ordersDataList;
    }


    /**
     * 返回订单集合元素个数(字符格式)
     * @return ‘ordersDataList.size()‘
     */
    public String getLength() {
        return ""+ordersDataList.size();
    }

}
